package com.dingding.gmall.auth.feign;

import com.dingding.gmall.auth.query.UserLoginQuery;
import com.dingding.gmall.auth.query.UserRegistQuery;
import com.dingding.gmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author liudingding
 * @ClassName MemberFeignService
 * @description
 * @date 2021/7/23 12:16 上午
 */

@FeignClient("gmall-member")
public interface MemberFeignService {

    @PostMapping(value = "/member/member/regist")
    R register(@RequestBody UserRegistQuery query);

    @PostMapping(value = "/member/member/login")
    R login(@RequestBody UserLoginQuery query);
}
